// pages/senior/senior.js
const app = getApp();
let searchKey = '' //搜索词
Page({
  data: {

    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar
  },

  bthsub(res){
    var{nickname}=res.detail.value;
    console.log(res)
  },


// 精确查询操作
  isCard(e) {
    this.setData({
      isCard: e.detail.value
    })
  },
  goTosenior1: function(){
    wx.navigateTo({
      url:'../senior1/senior1'
    })
  },
  goTosenior2: function(){
    wx.navigateTo({
      url:'../senior2/senior2'
    })
  },
  goTosenior3: function(){
    wx.navigateTo({
      url:'../senior3/senior3'
    })
  },
  goTosenior4: function(){
    wx.navigateTo({
      url:'../senior4/senior4'
    })
  },
  goTosenior5: function(){
    wx.navigateTo({
      url:'../senior5/senior5'
    })
  },
  goTosenior6: function(){
    wx.navigateTo({
      url:'../senior6/senior6'
    })
  },
  goTosenior7: function(){
    wx.navigateTo({
      url:'../senior7/senior7'
    })
  },
  goTosenior8: function(){
    wx.navigateTo({
      url:'../senior8/senior8'
    })
  },
  goTosenior9: function(){
    wx.navigateTo({
      url:'../senior9/senior9'
    })
  },
  goTosenior10: function(){
    wx.navigateTo({
      url:'../senior10/senior10'
    })
  },
  goTosenior11: function(){
    wx.navigateTo({
      url:'../senior11/senior11'
    })
  },
  goTosenior12: function(){
    wx.navigateTo({
      url:'../senior12/senior12'
    })
  },
  goTosenior13: function(){
    wx.navigateTo({
      url:'../senior13/senior13'
    })
  },
  goTosenior14: function(){
    wx.navigateTo({
      url:'../senior14/senior14'
    })
  },
  goTosenior15: function(){
    wx.navigateTo({
      url:'../senior15/senior15'
    })
  },
  goTosenior15: function(){
    wx.navigateTo({
      url:'../senior15/senior15'
    })
  },
  goTosenior16: function(){
    wx.navigateTo({
      url:'../senior16/senior16'
    })
  },
  goTosenior17: function(){
    wx.navigateTo({
      url:'../senior17/senior17'
    })
  },
  goTosenior18: function(){
    wx.navigateTo({
      url:'../senior18/senior18'
    })
  },
  goTosenior19: function(){
    wx.navigateTo({
      url:'../senior19/senior19'
    })
  },
  //获取用户输入的搜索词
  getSearchKey(e) {
    searchKey = e.detail.value
  },
  //搜索点击事件
  goSearch() {
    wx.navigateTo({
      url: '/pages/search/search?searchKey=' + searchKey,
    })
  },
});
